package com.atos.smp.actions;

import javax.faces.bean.ManagedBean;
import javax.faces.model.SelectItem;

import com.atos.smp.beans.Domain;
import com.atos.smp.beans.Rule;

@ManagedBean
public class DomainBean {
	
	public SelectItem[] getDomainValues() {
		SelectItem[] items = new SelectItem[Domain.values().length];
		int i = 0;
		for (Domain r : Domain.values()) {
			items[i++] = new SelectItem(r, r.getLabel());
		}
		return items;
	}
}
